package com.cnit1818.generator;

import java.util.Hashtable;

/**
 * Created with IntelliJ IDEA.
 * User: MaYong
 * Date: 12-11-20
 * Time: 上午10:10
 * To change this template use File | Settings | File Templates.
 */
public class OracleTable {
    private Hashtable mysql;

    public String getPath() {
        return this.getClass().getClassLoader().getResource("/").getPath();
    }

    public OracleTable() {
        this.mysql = new Hashtable();
        mysql.put("INTEGER","Integer");
        mysql.put("VARCHAR","String");
        mysql.put("VARCHAR2","String");
        mysql.put("CHAR","String");
        mysql.put("DATE","Date");
        mysql.put("DATETIME","Date");
        mysql.put("DOUBLE","Double");
        mysql.put("BIGINT","Integer");
        mysql.put("FLOAT","Double");
        mysql.put("DECIMAL","Double");
        mysql.put("NUMBER","Integer");
        mysql.put("CLOB","String");
        mysql.put("TIMESTAMP","Date");
    }

    public Hashtable getMysql() {
        return mysql;
    }

    public void setMysql(Hashtable mysql) {
        this.mysql = mysql;
    }
}
